package com.tbit.uqbike.webmanager.dao.log;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.config.datasource.DataSource;
import com.tbit.uqbike.object.pojo.UserAuthLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Author:BUGTian
 * @DATE: 2022/9/23
 */
@DS(DataSource.LOG)
public interface UserAuthLogDao extends BaseMapper<UserAuthLog> {

    /**
     * 条件查询
     *
     * @param accountId
     * @param adAccountId
     * @param userName
     * @param phone
     * @param configId
     * @param state
     * @return
     */
    List<UserAuthLog> queryPage(@Param("accountId") Integer accountId, @Param("adAccountId") Integer adAccountId, @Param("userName") String userName, @Param("phone") String phone, @Param("configId") Integer configId, @Param("state") Integer state, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    /**
     * 根据用户id查询用户审核记录
     *
     * @param userId 用户id
     */
    UserAuthLog selectByUserId(Integer userId);
}
